<template>
    <div>
        <van-nav-bar title="订单" left-text="返回" left-arrow @click-left="() => { $router.push('/login/gwc') }" />
        <van-tabs v-model:active="active">
            <van-tab title="商品详情">
                <div>
                    <van-card price="2.00" title="商品标题"
                        thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg" />
                    <van-submit-bar :price="200" button-text="提交订单" @submit="onSubmit">
                    </van-submit-bar>
                </div>
            </van-tab>
            <van-tab title="规格参数">内容 2</van-tab>
            <van-tab title="销售数据">内容 3</van-tab>
            <van-tab title="采购说明">内容 4</van-tab>
        </van-tabs>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
let router = useRouter()
let onSubmit = () => {
    router.push('zf')
}
</script>

<style lang="scss" scoped></style>